package com.devilvan.betrice.proxy.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;

/**
 * @Description Proxy表映射类
 * @author Evad.Wu
 * @date 2022-07-25
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "PROXY")

@Entity
@Table(name = "PROXY")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "Proxy表映射类")
public class ProxyPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -5694874595745475318L;
    @Schema(description = "IP")
    @Column(name = "IP")
    @TableField(value = "IP")
    private String ip;
    @Schema(description = "PORT")
    @Column(name = "PORT")
    @TableField(value = "PORT")
    private Integer port;
}
